package com.eclipse.e0112_多线程.优先级;

public class ThreadDemo05 {

    public static void main(String[] args) {
        Thread t1 = new Thread(new MyRun(), "A");
        Thread t2 = new Thread(new MyRun(), "B");
        Thread t3 = new Thread(new MyRun(), "C");
        t1.setPriority(Thread.MIN_PRIORITY);
        t2.setPriority(Thread.MAX_PRIORITY);
        t3.setPriority(Thread.NORM_PRIORITY);
        t1.start();
        t2.start();
        t3.start();
    }
}
